import requests
import certifi
import pyquery

url = 'https://www.mydrivers.com/'
headers = {
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0'
}


session = requests.Session()
res = session.get(url,headers=headers, verify=certifi.where(),timeout=10)
if res.status_code == 200:
    res.encoding = 'utf-8'
    doc = pyquery.PyQuery(res.text)

    title = doc('title')
    for item in title:
        print(item.text)

    content = doc('div.news_box ul li h5 a')
    for item in content:
        print(item.text)

